<template>
  <div class="indexInfo">
    <HmNavBar title="文章详情" class="Nav">
      <template #rightContent> <i class="iconfont icon-ellipsis"></i> </template
    ></HmNavBar>
    <div class="content">
      <!-- 文章标题 -->
      <h3 class="title">牛逼程序员都用的开源工具，你用了 几个？</h3>
      <!-- 用户 -->
      <div class="user">
        <div class="left">
          <img src="@/assets/胖虎.jpg" alt="" />
          <div class="left_name">
            <div class="top">
              小李，李总
            </div>
            <div class="bottom">
              14小时前
            </div>
          </div>
        </div>
        <div class="right">
          <div class="btn"><span class="f20">+</span>关注</div>
        </div>
      </div>
      <!-- 文本 -->
      <div class="text">
        小李好帅，班班好帅，啊彬好帅小李好帅，班班好帅，
        啊彬好帅小李好帅，班班好帅，啊彬好帅小李好帅，班班好帅
        ，啊彬好帅小李好帅，班班好帅，啊彬好帅小李好帅，班班好帅
        啊彬好帅小李好帅，班班好帅，啊彬好帅小李好帅，班班好帅，
        啊彬好帅小李好帅，班班好帅，啊彬好帅小李好帅，班班好帅
        ，啊彬好帅小李好帅，班班好帅，啊彬好帅小李好帅，班班好帅。
      </div>
      <!-- 猜你喜欢 -->
      <div class="youLike">
        <h3 class="likeTitle">猜你喜欢</h3>
        <div class="know">
          <div class="leftKnow">
            <div class="leftText">小李好帅</div>
            <div class="leftText">小李好帅</div>
            <div class="leftText">小李好帅</div>
          </div>
          <div class="rightKonw">
            <div class="rightText">小李好帅</div>
            <div class="rightText">小李好帅</div>
            <div class="rightText">小李好帅</div>
          </div>
        </div>
        <div class="like_noLike">
          <div class="like">
            <i class="iconfont icon-zan4"></i>
            点赞
          </div>
          <div class="noLike">
            <i class="iconfont icon-cha"></i>
            不喜欢
          </div>
        </div>
      </div>
      <!-- 文章 图片 -->
      <div class="articleImg">
        <img src="@/assets/m.jpg" alt="" class="img" />
        <div class="imgText">
          小李好帅，班班好帅小李好帅，班班好帅小李好帅，班班好帅小李好帅，班班好帅
        </div>
      </div>
    </div>
    <!-- 评论 -->
    <div class="footer">
      <div class="comment">
        <img src="@/assets/胖虎.jpg" alt="" class="commentleft" />
        <div class="commentRight">
          <div class="c1">
            <div class="c1name">
              小李
            </div>
            <i class="iconfont icon-good2"><span>26</span></i>
          </div>
          <div class="c2">
            班班好帅班班好帅班班好帅班班好帅班班好帅班班好帅
          </div>
          <div class="c3">
            <div class="time">
              09-13 15:22 ·
            </div>
            <div class="reply">
              6回复
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 发评论 -->
    <div class="publish">
      <van-field placeholder="写文本" class="inputVal" />
      <i class="iconfont icon-pinglun1 icon1">
        <span>28</span>
      </i>
      <i class="iconfont icon-shoucang1 icon2"></i>
      <i class="iconfont icon-zhuanfa icon3"></i>
    </div>
  </div>
</template>
<script>
export default {}
</script>
<style lang="less" scope>
.indexInfo {
  position: relative;
  .Nav {
    position: fixed;
    top: 0;
    width: 100%;
  }
  .content {
    padding: @p15;
    margin-top: 40px;
    // 标题
    .title {
      font-family: MicrosoftYaHei-Bold;
      font-size: 20px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 33px;
      letter-spacing: 1px;
      color: #3a3a3a;
      margin-bottom: 20px;
    }
    // 用户
    .user {
      display: flex;
      justify-content: space-between;
      .left {
        display: flex;
        align-items: center;
        img {
          width: 35px;
          height: 35px;
          border-radius: 50%;
          margin-right: 8px;
        }
        .left_name {
          .top {
            font-size: 14px;
            color: #000;
          }
          .bottom {
            margin-top: 2px;
            font-size: 12px;
            color: #ccc;
          }
        }
      }
      .right {
        color: white;
        .btn {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 85px;
          height: 29px;
          background: linear-gradient(to right, #ff6251 0%, #ff9d55 100%);
          border: none;
          border-radius: 15px;
          text-align: center;
          font-size: 15px;
          .f20 {
            font-size: 25px;
            margin-right: 5px;
          }
        }
      }
    }
    // 文本
    .text {
      margin-top: 20px;
      font-size: 20px;
    }
    // 猜你喜欢
    .youLike {
      margin-top: 20px;
      .likeTitle {
        font-family: MicrosoftYaHei-Bold;
        font-size: 20px;
        font-weight: 700;
        font-stretch: normal;
        line-height: 33px;
        letter-spacing: 1px;
        color: #333333;
      }
      .know {
        display: flex;
        justify-content: space-between;
        padding-left: @p15;
        padding-right: @p15;
        .leftKnow {
          .leftText {
            font-family: MicrosoftYaHei;
            font-size: 15px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 33px;
            letter-spacing: 1px;
            color: #666666;
          }
        }
        .rightKonw {
          .rightText {
            font-family: MicrosoftYaHei;
            font-size: 15px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 33px;
            letter-spacing: 1px;
            color: #666666;
          }
        }
      }
      .like_noLike {
        display: flex;
        justify-content: center;
        margin-top: 15px;
        .like,
        .noLike {
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 0 15px;
          text-align: center;
          width: 80px;
          border-radius: 30px;
          font-family: MicrosoftYaHei;
          font-size: 13px;
          font-weight: normal;
          font-stretch: normal;
          line-height: 33px;
          letter-spacing: 1px;
          color: white;
          background: linear-gradient(to right, #ff6251 0%, #ff9d55 100%);
          .iconfont {
            margin-right: 5px;
          }
        }
      }
    }
    // 文章图片
    .articleImg {
      margin-top: 30px;
      margin-bottom: 20px;
      border: 1px solid #ccc;
      padding: 10px;
      .img {
        width: 100%;
        height: 70%;
        overflow: hidden;
      }
      .imgText {
        margin-top: 5px;
        font-size: 14px;
      }
    }
  }
  //   评论
  .footer {
    padding: @p15;
    margin-bottom: 60px;
    .comment {
      display: flex;
      justify-content: space-between;
      .commentleft {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
      }
      .commentRight {
        .c1 {
          display: flex;
          justify-content: space-between;
          margin-bottom: 10px;
          .c1name {
            color: #849cbd;
            font-size: 18px;
          }
          .iconfont {
            display: flex;
            align-items: center;
            span {
              margin-left: 3px;
            }
          }
        }
        .c2 {
          font-size: 20px;
          margin-bottom: 10px;
        }
        .c3 {
          display: flex;
          align-items: center;
          .time {
            font-size: 14px;
          }
          .reply {
            text-align: center;
            padding: 5px 20px;
            margin-left: 20px;
            font-size: 14px;
            background-color: #f4f5f6;
            border-radius: 30px;
          }
        }
      }
    }
  }
  //   发表评论
  .publish {
    padding: 8px @p15;
    position: fixed;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(to right, #ff6251 0%, #ff9d55 100%);
    .inputVal {
      display: flex;
      align-items: center;
      width: 60%;
      border-radius: 30px;
      height: 30px;
    }
    .iconfont {
      font-size: 20px;
      color: white;
      display: flex;
      position: relative;
      span {
        position: absolute;
        right: -7px;
        top: -5px;
        display: inline-block;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 15px;
        height: 15px;
        font-size: 5px;
        padding: 8px;
        border-radius: 50%;
        background-color: #ff6251;
      }
    }
    .icon2 {
      color: red;
    }
  }
}
</style>
